const Home = () => import('@/components/layout')
const DashBoard = () => import('@/views/dashBoard')
const FirstPage = () => import('@/views/firstpage')

const VioceAir = () => import('@/views/xdbusiness/vioceair')
const FiveAir = () => import('@/views/xdbusiness/fiveair')
const ControlCenter = () => import('@/views/xdbusiness/controlcenter')

const News = () => import('@/views/news')
const About = () => import('@/views/about')
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  { // 主页
    path: '/home',
    name: Home,
    component: Home,
    redirect: '/home/dashboard',
    children: [
      { // 仪表盘
        path: 'dashboard',
        name: DashBoard,
        component: DashBoard
      },
      { // 首页管理
        path: 'firstpage',
        name: FirstPage,
        component: FirstPage
      },
      { // 声能空调
        path: 'vioceair',
        name: VioceAir,
        component: VioceAir
      },
      { // 五恒系统
        path: 'FiveAir',
        name: FiveAir,
        component: FiveAir
      },
      { // 控制中心
        path: 'controlcenter',
        name: ControlCenter,
        component: ControlCenter
      },
      { // 新闻
        path: 'news',
        name: News,
        component: News
      },
      { // 关于我们
        path: 'news',
        name: About,
        component: About
      }
    ]
  }
]
export default routes
